package com.liaozibo.activiti.developer.quick.start;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import java.util.Date;

/**
 * Service Task 示例
 * author: liaozibo
 * createTime: 2021/3/12 21:00
 */
public class AutomatedDataDelegate implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        Date now = new Date();
        execution.setVariable("autoWelcomeTime", now);
        System.out.println("Faux call to backend for ["
                + execution.getVariable("fullName") + "]");
    }
}
